﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoardPACDSBO.Base
{
    public class BaseAuthorizationModel
    {
        //public int primaryId { get; set; }
        public int Type { get; set; }
        public int RefId { get; set; }
        public int CustomUserId { get; set; }
        public Guid RoleId { get; set; }
        public int NextRefId { get; set; }
    }

    public class RolesByLevel
    {
        public String GlobalActions { get; set; }
        public String CategoryActions { get; set; }
        public String SubCategoryActions { get; set; }
        public String MeetingActions { get; set; }
        public String PaperActions { get; set; }
    }

    public class BaseServiceModel
    {
        public RolesByLevel ActionsbyLevel { get; set; }
        public string ActionsAllowedforCurrentUser { get; set; }
        public bool Authorized { get; set; }
        public string[] userroles { get; set; }
    }

    public class AuditLogModel
    {
        public int EventNumber { get; set; }
        public DateTime Date { get; set; }
        public string EventOrError { get; set; }
        public string EventStatus { get; set; }
        public string ControllerName { get; set; }
        public string ActionName { get; set; }
        public string UserName { get; set; }
        public string Parameters { get; set; }
    }
}
